package com.gxuwz.stats.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

@TableName("rsp_intellectual_property")
public class IntellectualProperty {

    @TableId(value = "intellectual_id", type = IdType.AUTO)
    private Long intellectualId;

    @TableField("user_id")
    private Integer userId;

    @TableField(exist = false) // 非数据库字段（用于前端展示）
    private String username;

    @TableField("intellectual_achievement_name")
    private String intellectualAchievementName;

    @TableField("authorization_number")
    private String authorizationNumber;

    @TableField("intellectual_category")
    private String intellectualCategory;

    @TableField("intellectual_score")
    private Double intellectualScore;

    @TableField("intellectual_notes")
    private String intellectualNotes;

    public Long getIntellectualId() {
        return intellectualId;
    }

    public void setIntellectualId(Long intellectualId) {
        this.intellectualId = intellectualId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getIntellectualAchievementName() {
        return intellectualAchievementName;
    }

    public void setIntellectualAchievementName(String intellectualAchievementName) {
        this.intellectualAchievementName = intellectualAchievementName;
    }

    public String getAuthorizationNumber() {
        return authorizationNumber;
    }

    public void setAuthorizationNumber(String authorizationNumber) {
        this.authorizationNumber = authorizationNumber;
    }

    public String getIntellectualCategory() {
        return intellectualCategory;
    }

    public void setIntellectualCategory(String intellectualCategory) {
        this.intellectualCategory = intellectualCategory;
    }

    public Double getIntellectualScore() {
        return intellectualScore;
    }

    public void setIntellectualScore(Double intellectualScore) {
        this.intellectualScore = intellectualScore;
    }

    public String getIntellectualNotes() {
        return intellectualNotes;
    }

    public void setIntellectualNotes(String intellectualNotes) {
        this.intellectualNotes = intellectualNotes;
    }

    @Override
    public String toString() {
        return "IntellectualProperty{" +
                "intellectualId=" + intellectualId +
                ", userId=" + userId +
                ", username='" + username + '\'' +
                ", authorizationNumber='" + authorizationNumber + '\'' +
                ", intellectualCategory='" + intellectualCategory + '\'' +
                ", intellectualScore=" + intellectualScore +
                ", intellectualNotes='" + intellectualNotes + '\'' +
                ", intellectualAchievementName='" + intellectualAchievementName + '\'' +
                '}';
    }
}
